home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD School House 10
/
CD School House - Education and Games (10.0) - Wayzata Technology (1995).iso
/
mac
/
DOS
/
MISC
/
SSTUFF30
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-05-16
|
2KB
|
70 lines
echo off
if not exist STUFF.DOC goto nostart
if exist TEMP del TEMP
KLS 4
BOX INSTALL1.TXT /c14 /i0 /x15
INPUT /Q
if errorlevel 254 goto done
CD|INPUT /MDRV /Q /B+
KLS 4
BOX INSTALL2.TXT /c14 /i0 /x15
INPUT /KQF "Quick or Full Install? (ESC to abort)" /I /R18 /C
if errorlevel 254 goto done
if errorlevel 2 goto full
:quick
XD C:\STUFF >NUL
if errorlevel 1 goto error1
%DRV%KLS 4
%DRV%BOX /T1 /L20 /H4 /W40 /C14 /I0
%DRV%WRITE "Quick Install" /R3 /C 15
%DRV%WRITE "Copying files to C:\STUFF..." /R8 /L25 207
COPY %DRV%*.* >NUL
WRITE "Copying files to C:\STUFF...done." /R8 /L25 79
WAITFOR 3
KLS 4
INPUT "Would you like to print the documentation to LPT1?" /N /R10 /C 79
if errorlevel 1 copy STUFF.DOC LPT1:
goto done
:full
set TGT=C:\STUFF
KLS 4
BOX /T1 /L20 /H4 /W40 /C14 /I0
WRITE "Full Install" /R3 /C 15
BOX /T10 /L5 /H4 /W70 /C14 /I0
WRITE "Enter COMPLETE drive/directory in which to install STEENBURGH's STUFF" /r18 /c 78
INPUT "Install to: " /MTGT /F53 112 14 /R12 /L7
XD %TGT% >NUL
if errorlevel 1 goto error1
%DRV%KLS 4
%DRV%WRITE "Copying files to %TGT%..." /R8 /L20 207
COPY %DRV%*.* >NUL
WRITE "Copying files to %TGT%...done." /R8 /L20 79
WAITFOR 3
KLS 4
INPUT "Would you like to print the documentation?" /N /R4 /C 79
if not errorlevel 1 goto done
FOR %%d IN (1 2 3) DO CHKPRN LPT%%d |SIFT /F:>>TEMP
WRITE "CHKPRN has determined the status of your printer(s):" /R6 /C 79
BOX TEMP /C79 /I4 /X78
INPUT "Select a printer port: " /K123 /Q /R20 /C 79 /MLPT
if errorlevel 254 goto done
call SAFEPRN.BAT STUFF.DOC LPT%LPT%
goto done
:error1
cls
echo There was a problem creating the directory.
echo Check the drive/directory name and try again.
echo All but the LAST subdirectory level specified must already exist.
pause
goto done
:nostart
cls
echo You must run INSTALL.BAT from the directory in which it is located!
echo Change to the proper drive/directory and run INSTALL.BAT again!
pause
:done
set DRV=
set TGT=
set LPT=
cls